IProject.GetModelById method ¶
Namespace: NextDesign.Core
Description¶
Gets the model with the specified identifier from this project. Returns null if the specified model cannot be found. Note that the association cannot be obtained with this call. Use GetRelationshipById () to get the relationship.
This call also covers models that were deleted after the project was loaded. Evaluate with IModel.IsDeleted if the obtained model has been deleted.
argument¶
Name | Type | Description |
---|---|---|
identifier | string | Model identifier Null or empty string cannot be specified. |
Return value¶
Exception¶
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified in identifier |